package com.kedacom.ctsp.authz.security.provider;

import lombok.Getter;
import lombok.Setter;

/**
 * 登录时封装bean
 *
 * @author sunchenjie
 * @date 2017/12/21 0021
 */
@Getter
@Setter
public class UserBean {

    public static String USERNAME = "username";
    public static String PASSWORD = "password";
    public static String CAPTCHA = "captcha";
    public static String ACCESS_TOKEN = "accessToken";
    public static String DEPARTMENT_CODE = "departmentCode";
    /**
     * 用户名
     */
    private String username;
    /**
     * 密码
     */
    private String password;
    /**
     * 验证码
     */
    private String captcha;
    /**
     * 唯一编号 例如设备编号
     */
    private String accessToken;
    /**
     * 部门编号
     */
    private String departmentCode;

    public UserBean() {
    }

    public UserBean(String username, String password, String captcha, String accessToken, String departmentCode) {
        this.username = username;
        this.password = password;
        this.captcha = captcha;
        this.accessToken = accessToken;
        this.departmentCode = departmentCode;
    }
}
